---
const { id, Tag, parent } = Astro.props;
---
<Tag id={id} class="nested">
  <a href={`#${id}`}><span class="parent">{parent}</span><slot /></a>
</Tag>
